package com.st.service.impl;

import com.st.dao.IProductCategoryDao;
import com.st.entity.ProductCategory;
import com.st.service.IProductCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductCategoryService implements IProductCategoryService {
    @Autowired
    private IProductCategoryDao productCategoryDao;

    @Override
    public List<ProductCategory> query(ProductCategory productCategory) {
        return productCategoryDao.query(productCategory);
    }

    @Override
    public Integer add(ProductCategory productCategory) {
        return productCategoryDao.add(productCategory);
    }

    @Override
    public Integer update(ProductCategory productCategory) {
        return productCategoryDao.update(productCategory);
    }
}
